<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="description" content="mô tả website">
		<meta name="keywords" content="những từ khóa của website bạn">
		<meta name="author" content="tác giả">
		<link rel="shortcut icon" href="img/front/favicon.ico">
		<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,600&subset=latin,vietnamese,latin-ext' rel='stylesheet' type='text/css'>
		<title><?php echo $this->pageTitle;?></title>
		<!-- Remove style skype on IE -->
		<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />
		<meta content="telephone=no" name="format-detection" />

		<link rel="stylesheet" type="text/css" media="screen" href="<?php echo Yii::app()->theme->baseUrl;?>/css/common.css" />
		<!--[if lt IE 9]>
		<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
		<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
		<![endif]-->
	</head>
	<body>
		<div id="wrapper">
			<div class="header-view-demo-theme">
				<h1 class="wrap-logo"><a href="<?php echo PIUrl::createUrl('/home/');?>" class="icon-ib logo text-hide" style="background:url('<?php
						echo yii::app()->baseUrl."/upload/images/".$this->arrSystem[0]->logo;
					?>') no-repeat scroll center top / cover  rgba(0, 0, 0, 0)">Kovo.vn</a></h1>
				<a href="#" class="btn-contact-buy">Liên hệ mua</a>
				<a href="<?php
					echo (!empty($theme)) ? PIUrl::createUrl('/home/themeDetail', array("alias"=> $_GET['alias'])) : PIUrl::createUrl('/home/theme');
				?>" class="text-hide icon-ib icon-close-theme">Close</a>
			</div>
			<?php
				if(!empty($theme)){
				$path = PIUrl::createUrl('/upload/demo/')."/".$theme->alias."_".$theme->md5PageDemo;
				$path1 = Yii::getPathOfAlias('webroot').'/upload/demo/'.$theme->alias."_".$theme->md5PageDemo;
				if(file_exists($path1)){
			?>
			<iframe id="theme-live-demo" src="<?php echo $path; ?>" name="preview-frame" frameborder="0"></iframe>
			<?php }else echo translate("Không tìm thấy trang demo!"); ?>
			<?php } ?>
		</div>

		<!-- Script -->
		<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl;?>/js/jquery-1.8.2.min.js"></script>
		<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl;?>/js/jquery.smoothscroll.min.js"></script>
		<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl;?>/js/owl.carousel.min.js"></script>
		<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl;?>/js/jquery.easydropdown.min.js"></script>
		<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl;?>/js/classie.js"></script>
		<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl;?>/js/common.js"></script>
	</body>
</html>